Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[graphics] Rewrite of texture system #1212

Merged
merged 7 commits into from
Mar 3, 2022
Merged

[graphics] Rewrite of texture system #1212

merged 7 commits into from
Mar 3, 2022

Conversation

water111
Copy link
Collaborator

@water111 water111 commented Mar 2, 2022

No description provided.

@water111 water111 marked this pull request as ready for review March 2, 2022 02:47
@water111
Copy link
Collaborator Author

water111 commented Mar 3, 2022

This ended up having a lot more changes to the loading process than I thought it would. We now start loading PC levels ahead of time, instead of waiting for the first tfrag/tie draw.

@water111
Copy link
Collaborator Author

water111 commented Mar 3, 2022

Summary of changes:

  • decompiler now checks that duplicate textures have the same data
  • decompiler includes all level textures in FR3's and adds a flag for if they are part of the levels texture (not "borrowed" from other levels that happened to be loaded)
  • decompiler supports texture replacement
  • decompiler outputs GAME.fr3 file for common textures
  • texture names in assets/texture replacement no longer have the size/mip
  • got rid of graphics dumps
  • engine now tells graphics systems which levels are loaded/loading
  • graphics begins loading based on game level loading, not tfrag/tie draws (sometimes we need texture from loaded levels that are not drawing tfrag/tie)
  • all texture are provided through the loader
  • fixed some logic bugs in the vertex upload load states. We're getting closer to loading without dropping frames.
  • the texture converter and cache is removed!

@water111 water111 merged commit a5b383c into master Mar 3, 2022
@water111 water111 deleted the w/loading branch March 3, 2022 01:09
This was referenced Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant